package chai.ning.methods;

import java.io.PrintStream;

public class Monkey
{
  public void increment(int x)
  {
    System.out.println(x);
    x++;
    System.out.println(x);
  }

  public void addition(int a, int b) {
    a += b;
    System.out.println(a);
  }

  public static void main(String[] args)
  {
    Monkey m = new Monkey();

    int x = 100;
    System.out.println("before increment : x = " + x);

    m.increment(x);
    System.out.println("after increment : x = " + x);

    System.out.println("- - - - - - - - - - - - - - -");
    int a = 1;
    int b = 2;
    m.addition(a, b);
    System.out.println(a);
  }
}